package com.itcast.homework02.work01;

/*
Manager继承Employee
*/
public class Manager extends Employee {
    //Manager里面有单独的奖金属性
    private int bonus;

    public Manager() {
    }

    public Manager(String name, String id, int salary, int bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("名字为："+  getName() + "工资为：" + getSalary()  +"，工号为：" + getId() +"，奖金为：" + bonus + "的项目经理正在努力的做着管理工作,分配任务,检查员工提交上来的代码..... ");
    }
}
